<?php include 'includes/inc_header_list.php' ?>
<?php include 'includes/inc_header.php' ?>
<hr class='noscreen' />
<?php include 'includes/inc_menu.php' ?>
<hr class='noscreen' />

<!-- Columns -->
<div id='cols' class='box'>
    <?php include 'includes/left-column.php'; ?>
</div> <!-- /aside -->
<hr class='noscreen' />
<!-- Content (Right Column) -->
<div id='content' class='box'>
    <h1>Galeria Fazenda</h1>

    <!-- Pagination (Top) -->
    <div class='pagination box'>
        <p class='f-right'>
            <a href='#'>&laquo;</a>
            <a href='#' class='pagination-active'>1</a> <!-- Active -->
            <a href='#'>2</a>
            <a href='#'>3</a>
            <a href='#'>4</a>
            <a href='#'>5</a>
            <a href='#'>6</a>
            <a href='#'>7</a>
            &hellip;
            <a href='#'>53</a>
            <a href='#'>54</a>
            <a href='#'>55</a>
            <a href='#'>&raquo;</a>
        </p>
        <p class='f-left'>Mostrando <strong>10&ndash;20</strong> de <strong>3 520</strong> resultados</p>
    </div> <!-- /pagination -->

    <form action='#' method='post'>
        <div class='gallery'>
            <?php
            $pasta = 'uploads/fazenda';
            $imagem = glob("$pasta/{*.jpg,*.gif,*.png}", GLOB_BRACE);
            $file = array();

            foreach ($imagem as $img) {
                $tmp = filemtime($img);
                $file[$tmp] = $img;
            }
            ksort($file);

            foreach ($file as $images) {
            ?>
                <p>
                    <label><input type='checkbox' /><code>UploadedImage.jpg</code></label><br />
                    <span class='smaller'>Tamanho: <strong>800&times;600</strong>,
                    Data: <strong>11-08-09</strong></span><br />
                    <a href='uploads/fazenda/img-01.gif' rel='lightbox' title='Image Description'><img src='tmp/img-01-thumb.gif' class='gallery-img' alt='' /></a>
                    <a href='#' class='ico-delete'>Deleta</a> &nbsp; <a href='#' class='ico-edit'>Edita</a> &nbsp; <a href='tmp/img-01.gif' rel='lightbox' class='ico-show'>Detalha</a>
                </p>
              <?php } ?>
        </div> <!-- /gallery -->
        <div class='fix'></div>
        <?php include 'includes/inc_galeria_acao.php'; ?>
        </form>
        <div class='pagination box bottom'>

            <p class='f-right'>
                <a href='#'>&laquo;</a>
                <a href='#' class='pagination-active'>1</a> <!-- Active -->
                <a href='#'>2</a>
                <a href='#'>3</a>
                <a href='#'>4</a>
                <a href='#'>5</a>
                <a href='#'>6</a>
                <a href='#'>7</a>
                &hellip;
                <a href='#'>53</a>
                <a href='#'>54</a>
                <a href='#'>55</a>
                <a href='#'>&raquo;</a>
            </p>
            <p class='f-left'>Mostrando <strong>10&ndash;20</strong>
                de <strong>3 520</strong> resultados</p>
        </div>
    </div>
    </div>
    <hr class='noscreen' />
<?php include 'includes/inc_footer.php'; ?>